#include <iostream>
#include <list>

using namespace std;

int main()
{
	int arr[10] = {1,2,3,4,5,6,7,8,9,10};
	list<int> ilist(arr,arr+10);
	list<int>::iterator iter1 = ilist.begin();
	list<int>::iterator iter2 = ilist.end();
	while(iter2!=iter1)
		cout<<*(--iter2)<<endl;

	return 0;
}
